package connect_tx_sdk.config;

import java.io.InputStream;
import java.util.Properties;


/**
 * 
 * @创建作者：hiyoucai@126.com
 * @创建时间：2011-6-17 下午04:55:04
 * @文件描述：QQ登录连接注册到的私有信息.
 */
public class QQConfig {
	
	public static  String appid = "";
	public static  String appkey = "";
	public static  String callback = "/qq/call.x";
	
	static{
		try {
			Properties properties = new Properties();
			InputStream input = QQConfig.class.getClassLoader().getResourceAsStream("connect.properties");
			properties.load(input);
			appid = properties.getProperty("qq.appid", "");
			appkey = properties.getProperty("qq.appkey", "");
			callback = properties.getProperty("qq.callback", "");
			input.close();
		} catch (Exception e) {
			System.out.println("请设置connect.properties中的QQ登录私有信息\r\n");
			e.printStackTrace();
		}
	}

}
